package com.com.hefei.wdp.example.controller;

import com.com.hefei.wdp.example.service.IMessageProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class ProducerController {
    @Autowired
    IMessageProducer  IMessageProducer;
    @GetMapping("send")
    public String sendMSG(){
        IMessageProducer.seand();
        return "succee";
    }
}
